<?php /*a:4:{s:113:"/www/wwwroot/dianshu/application/admin/view/default/../../../plugins/view/expressforkdn/index/public/content.html";i:1568885128;s:107:"/www/wwwroot/dianshu/application/admin/view/default/../../../plugins/view/coupon/admin/coupon/saveinfo.html";i:1570967780;s:70:"/www/wwwroot/dianshu/application/admin/view/default/public/header.html";i:1568774834;s:70:"/www/wwwroot/dianshu/application/admin/view/default/public/footer.html";i:1572600796;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="<?php echo config('shopxo.default_charset', 'utf-8'); ?>" />
	<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1" />
	<title>ShopXO后台管理系统</title>
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/assets/css/amazeui.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-switch/amazeui.switch.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-chosen/amazeui.chosen.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-tagsinput/amazeui.tagsinput.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/css/common.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/admin/<?php echo htmlentities($default_theme); ?>/css/common.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/admin/<?php echo htmlentities($default_theme); ?>/css/iconfontmenu.css" />
    <?php if(!empty($plugins_css)): ?>
        <link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($plugins_css); ?>" />
    <?php endif; if(!empty($module_css)): ?>
		<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($module_css); ?>" />
	<?php endif; ?>

	<!-- css钩子 -->
    <?php if(!empty($plugins_admin_css_data) and is_array($plugins_admin_css_data)): foreach($plugins_admin_css_data as $hook): if(is_string($hook)): ?>
                <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($hook); ?>?v=<?php echo MyC('home_static_cache_version'); ?>" />
            <?php elseif(is_array($hook)): foreach($hook as $hook_css): if(is_string($hook_css)): ?>
                        <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($hook_css); ?>?v=<?php echo MyC('home_static_cache_version'); ?>" />
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>
        <?php endforeach; ?>
    <?php endif; ?>

    <!-- 公共header内钩子 -->
	<?php if(!empty($plugins_admin_common_header_data) and is_array($plugins_admin_common_header_data)): foreach($plugins_admin_common_header_data as $hook): if(is_string($hook) or is_int($hook)): ?>
				<?php echo $hook; ?>
			<?php endif; ?>
		<?php endforeach; ?>
	<?php endif; ?>
</head>
<script type="text/javascript">
	var __attachment_host__ = '<?php echo htmlentities($attachment_host); ?>';
</script>
<body>
<!-- 公共顶部钩子 -->
<?php if(!empty($plugins_admin_view_common_top_data) and is_array($plugins_admin_view_common_top_data) and (!isset($is_header) or $is_header == 1)): foreach($plugins_admin_view_common_top_data as $hook): if(is_string($hook) or is_int($hook)): ?>
			<?php echo $hook; ?>
		<?php endif; ?>
	<?php endforeach; ?>
<?php endif; ?>

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- form start -->
        <form class="am-form form-validation view-save" action="<?php echo PluginsAdminUrl('coupon', 'coupon', 'save'); ?>" method="POST" request-type="ajax-url" request-value="<?php echo PluginsAdminUrl('coupon', 'coupon', 'index', $params); ?>">
            <legend>
                <span class="fs-16">优惠劵<?php if(empty($data)): ?>添加<?php else: ?>编辑<?php endif; ?></span>
                <a href="<?php echo PluginsAdminUrl('coupon', 'coupon', 'index', $params); ?>" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
            </legend>

            <!-- tips -->
            <div class="am-alert am-alert-warning" data-am-alert>
                已发放优惠劵将不能编辑核心数据和删除操作
            </div>

            <!-- 基础 -->
            <div class="am-panel am-panel-secondary">
                <div class="am-panel-hd">基础</div>
                <div class="am-panel-bd">
                    <div class="am-form-group">
                        <label>优惠劵名称<span class="am-form-group-label-tips">如 满300减10</span></label>
                        <input type="text" name="name" placeholder="请输入优惠劵名称" maxlength="30" data-validation-message="优惠劵名称格式最多 30 个字符" class="am-radius" <?php if(!empty($data['name'])): ?> value="<?php echo htmlentities($data['name']); ?>"<?php endif; ?> required />
                    </div>

                    <div class="am-form-group">
                        <label>优惠劵描述</label>
                        <input type="text" name="desc" placeholder="请输入优惠劵描述" maxlength="60" data-validation-message="优惠劵描述格式最多 60 个字符" class="am-radius" <?php if(!empty($data['desc'])): ?> value="<?php echo htmlentities($data['desc']); ?>"<?php endif; ?> />
                    </div>

                    <div class="am-form-group">
                        <label>优惠券颜色<span class="am-form-group-label-tips">默认红色</span></label>
                        <div>
                            <?php foreach($coupon_bg_color_list as $v): ?>
                                <label class="am-radio-inline am-margin-right-sm">
                                    <input type="radio" name="bg_color" value="<?php echo htmlentities($v['value']); ?>" <?php if(isset($data['bg_color']) and $data['bg_color'] == $v['value']): ?>checked="checked"<?php else: if(!isset($data['bg_color']) and isset($v['checked']) and $v['checked'] == true): ?>checked="checked"<?php endif; ?><?php endif; ?> data-am-ucheck /> <?php echo htmlentities($v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>

                    <?php if(!isset($data['id']) or $data['already_send_count'] <= 0): ?>
                        <div class="am-form-group">
                            <label>优惠券类型</label>
                            <div>
                                <?php foreach($coupon_type_list as $v): ?>
                                    <label class="am-radio-inline am-margin-right-sm">
                                        <input type="radio" name="type" value="<?php echo htmlentities($v['value']); ?>" <?php if(isset($data['type']) and $data['type'] == $v['value']): ?>checked="checked"<?php else: if(!isset($data['type']) and isset($v['checked']) and $v['checked'] == true): ?>checked="checked"<?php endif; ?><?php endif; ?> data-am-ucheck /> <?php echo htmlentities($v['name']); ?>
                                    </label>
                                <?php endforeach; ?>
                            </div>
                        </div>

                        <div class="am-form-group coupon-form-discount-price" <?php if(isset($data['type']) and $data['type'] != 0): ?>style="display: none;"<?php endif; ?>>
                            <label>减免金额</label>
                            <input type="number" name="discount_price" min="0.01" step="0.01" placeholder="请输入订减免金额" data-validation-message="请输入有效的减免金额 最低0.01元" class="am-radius" <?php if(!empty($data['discount_value'])): ?> value="<?php echo htmlentities($data['discount_value']); ?>"<?php endif; ?> />
                        </div>

                        <div class="am-form-group coupon-form-discount-rate" <?php if(!isset($data['type']) or $data['type'] != 1): ?>style="display: none;"<?php endif; ?>>
                            <label>折扣率<span class="am-form-group-label-tips">折扣率范围0-10，9.5代表9.5折，0或空代表无折扣</span></label>
                            <input type="number" name="discount_rate" placeholder="请输入折扣率" min="0.01" max="10.00" step="0.01" data-validation-message="折扣率应输入 0.01~10 的数字,小数保留两位" class="am-radius" <?php if(!empty($data['discount_value'])): ?> value="<?php echo htmlentities($data['discount_value']); ?>"<?php endif; ?> />
                        </div>
                    <?php endif; ?>

                    <div class="am-form-group">
                        <label>顺序</label>
                        <input type="number" placeholder="顺序" name="sort" min="0" max="255" data-validation-message="顺序 0~255 之间的数值" class="am-radius" value="<?php if(isset($data['sort'])): ?><?php echo htmlentities($data['sort']); else: ?>0<?php endif; ?>" required />
                    </div>

                    <div class="am-form-group">
                        <label class="block">是否启用<span class="am-form-group-label-tips">默认否</span></label>
                        <input name="is_enable" value="1" type="checkbox" data-off-text="否" data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="50" data-am-switch <?php if(isset($data['is_enable']) and $data['is_enable'] == 1): ?>checked="true"<?php endif; ?> />
                    </div>
                </div>
            </div>

            <!-- 时间 -->
            <?php if(!isset($data['id']) or $data['already_send_count'] <= 0): ?>
                <div class="am-panel am-panel-secondary">
                    <div class="am-panel-hd">有效时间</div>
                    <div class="am-panel-bd">
                        <div class="am-form-group">
                            <label>到期类型</label>
                            <div>
                                <?php foreach($common_expire_type_list as $v): ?>
                                    <label class="am-radio-inline am-margin-right-sm">
                                        <input type="radio" name="expire_type" value="<?php echo htmlentities($v['value']); ?>" <?php if(isset($data['expire_type']) and $data['expire_type'] == $v['value']): ?>checked="checked"<?php else: if(!isset($data['expire_type']) and isset($v['checked']) and $v['checked'] == true): ?>checked="checked"<?php endif; ?><?php endif; ?> data-am-ucheck /> <?php echo htmlentities($v['name']); ?>
                                    </label>
                                <?php endforeach; ?>
                            </div>
                        </div>

                        <div class="am-form-group coupon-form-expire-hour coupon-form-no-bottom-style" <?php if(isset($data['expire_type']) and $data['expire_type'] != 0): ?>style="display: none;"<?php endif; ?>>
                            <label>有效小时<span class="am-form-group-label-tips">单位 时</span></label>
                            <input type="number" name="expire_hour" placeholder="请输入有效小时" min="1" data-validation-message="有效小时最低1小时起" class="am-radius" <?php if(!empty($data['expire_hour'])): ?> value="<?php echo htmlentities($data['expire_hour']); ?>"<?php endif; ?> required />
                        </div>

                        <div class="am-form-group coupon-form-fixed-time" <?php if(!isset($data['expire_type']) or $data['expire_type'] != 1): ?>style="display: none;"<?php endif; ?>>
                            <label>限时时间<span class="am-form-group-label-tips">空则不限</span></label>
                            <div>
                                <input type="text" autocomplete="off" name="fixed_time_start" class="Wdate am-radius m-t-10" placeholder="开始时间" data-validation-message="请选择限时开始时间" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'%y-%M-%d %H:%m:%s',maxDate:'#F{$dp.$D(\'input-fixed-time-end\');}'})" <?php if(!empty($data['fixed_time_start'])): ?>value="<?php echo htmlentities($data['fixed_time_start']); ?>"<?php endif; ?> id="input-fixed-time-start" required />
                                <span>~</span>
                                <input type="text" autocomplete="off" class="Wdate am-radius m-t-10" placeholder="结束时间" data-validation-message="请选择限时结束时间" name="fixed_time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'input-fixed-time-start\')||\'<?php echo date('Y-m-d H:i:s'); ?>\';}'})" <?php if(!empty($data['fixed_time_end'])): ?>value="<?php echo htmlentities($data['fixed_time_end']); ?>"<?php endif; ?> id="input-fixed-time-end" required />
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 使用条件 -->
                <div class="am-panel am-panel-secondary">
                    <div class="am-panel-hd">使用条件</div>
                    <div class="am-panel-bd">
                        <div class="am-form-group">
                            <label>订单最低金额<span class="am-form-group-label-tips">订单消费最低金额条件</span></label>
                            <input type="number" name="where_order_price" min="0.00" step="0.01" placeholder="请输入订单最低金额" data-validation-message="请输入有效的订单最低金额" class="am-radius" <?php if(!empty($data['where_order_price'])): ?> value="<?php echo htmlentities($data['where_order_price']); ?>"<?php endif; ?> required />
                        </div>

                        <div class="am-form-group coupon-form-no-bottom-style">
                            <label>使用限制</label>
                            <div>
                                <?php foreach($common_use_limit_type_list as $v): ?>
                                    <label class="am-radio-inline am-margin-right-sm">
                                        <input type="radio" name="use_limit_type" value="<?php echo htmlentities($v['value']); ?>" <?php if(isset($data['use_limit_type']) and $data['use_limit_type'] == $v['value']): ?>checked="checked"<?php else: if(!isset($data['use_limit_type']) and isset($v['checked']) and $v['checked'] == true): ?>checked="checked"<?php endif; ?><?php endif; ?> data-am-ucheck /> <?php echo htmlentities($v['name']); ?>
                                    </label>
                                <?php endforeach; ?>
                            </div>
                        </div>

                        <div class="am-form-group coupon-use-goods-category coupon-form-no-bottom-style" <?php if(!isset($data['use_limit_type']) or $data['use_limit_type'] != 1): ?>style="display: none;"<?php endif; ?>>
                            <label class="am-block">关联可使用商品分类</label>
                            <select name="category_ids" class="am-radius chosen-select" multiple="multiple" minchecked="1" data-placeholder="请选择..." data-validation-message="请选择商品分类">
                                <?php if(!empty($category_list)): foreach($category_list as $v): ?>
                                        <option value="<?php echo htmlentities($v['id']); ?>" <?php if(isset($data['use_limit_type']) and $data['use_limit_type'] == 1 and !empty($data['use_value_ids_all']) and in_array($v['id'], $data['use_value_ids_all'])): ?>selected<?php endif; ?>>一级 - <?php echo htmlentities($v['name']); ?></option>
                                        <?php if(!empty($v['items'])): foreach($v['items'] as $vs): ?>
                                                <option style="padding-left: 30px;" value="<?php echo htmlentities($vs['id']); ?>" <?php if(isset($data['use_limit_type']) and $data['use_limit_type'] == 1 and !empty($data['use_value_ids_all']) and in_array($vs['id'], $data['use_value_ids_all'])): ?>selected<?php endif; ?>>二级-<?php echo htmlentities($vs['name']); ?></option>
                                                <?php if(!empty($vs['items'])): foreach($vs['items'] as $vss): ?>
                                                        <option style="padding-left: 60px;" value="<?php echo htmlentities($vss['id']); ?>" <?php if(isset($data['use_limit_type']) and $data['use_limit_type'] == 1 and !empty($data['use_value_ids_all']) and in_array($vss['id'], $data['use_value_ids_all'])): ?>selected<?php endif; ?>>三级-<?php echo htmlentities($vss['name']); ?></option>
                                                    <?php endforeach; ?>
                                                <?php endif; ?>
                                            <?php endforeach; ?>
                                        <?php endif; ?>
                                    <?php endforeach; ?>
                                <?php endif; ?>
                            </select>
                        </div>

                        <div class="am-form-group coupon-use-goods-content" <?php if(!isset($data['use_limit_type']) or $data['use_limit_type'] != 2): ?>style="display: none;"<?php endif; ?>>
                            <label class="am-block">关联可使用商品</label>
                            <div class="forth-selection-container">
                                <div class="forth-selection-form" data-search-url="<?php echo PluginsAdminUrl('coupon', 'coupon', 'search'); ?>">
                                    <input type="text" placeholder="商品名称" class="am-radius forth-selection-form-keywords" />
                                    <button type="button" class="am-btn am-btn-secondary am-radius am-btn-sm search-submit">搜索</button>
                                </div>
                                <div class="am-form-group am-form-group-refreshing forth-selection-list">
                                    <input type="hidden" name="goods_ids" value="<?php if(isset($data['use_limit_type']) and $data['use_limit_type'] == 2 and !empty($data['use_value_ids_str'])): ?><?php echo htmlentities($data['use_value_ids_str']); ?><?php endif; ?>" />
                                    <div class="forth-selection-items am-fl">
                                        <div class="title">可选</div>
                                        <ul class="forth-selection-content am-list ul-left">
                                            <div class="table-no">没有相关数据</div>
                                        </ul>
                                    </div>
                                    <button type="button" class="am-btn am-btn-default am-btn-xs selected-all">全选 <i class="am-icon-angle-double-right"></i></button>
                                    <div class="forth-selection-items am-fr">
                                        <div class="title">已选</div>
                                        <ul class="forth-selection-content am-list ul-right">
                                            <div class="table-no <?php if(!empty($data['goods_items'])): ?>none<?php endif; ?>">没有相关数据</div>
                                            <?php if(!empty($data['goods_items'])): foreach($data['goods_items'] as $v): ?>
                                                    <li class="am-animation-slide-bottom items-li-<?php echo htmlentities($v['id']); ?>">
                                                        <span class="name" data-value="<?php echo htmlentities($v['id']); ?>"><?php echo htmlentities($v['title']); ?></span>
                                                        <i class="am-icon-trash-o am-fr"></i>
                                                    </li>
                                                <?php endforeach; ?>
                                            <?php endif; ?>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>

            <!-- 发放限制 -->
            <div class="am-panel am-panel-secondary">
                <div class="am-panel-hd">发放限制</div>
                <div class="am-panel-bd">
                    <div class="am-form-group">
                        <label>发放总数量<span class="am-form-group-label-tips">空或0则不限</span></label>
                        <input type="number" name="limit_send_count" placeholder="请输入发放总数量" data-validation-message="请输入有效的发放总数量" class="am-radius" <?php if(!empty($data['limit_send_count'])): ?> value="<?php echo htmlentities($data['limit_send_count']); ?>"<?php endif; ?> />
                    </div>

                    <div class="am-form-group">
                        <label class="block">开放用户领取<span class="am-form-group-label-tips">默认否</span></label>
                        <input name="is_user_receive" value="1" type="checkbox" data-off-text="否" data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="50" data-am-switch <?php if(isset($data['is_user_receive']) and $data['is_user_receive'] == 1): ?>checked="true"<?php endif; ?> />
                    </div>

                    <div class="am-form-group">
                        <label class="block">注册即发放<span class="am-form-group-label-tips">默认否</span></label>
                        <input name="is_regster_send" value="1" type="checkbox" data-off-text="否" data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="50" data-am-switch <?php if(isset($data['is_regster_send']) and $data['is_regster_send'] == 1): ?>checked="true"<?php endif; ?> />
                    </div>
                </div>
            </div>

            <div class="am-form-group am-form-group-refreshing">
                <input type="hidden" name="id" <?php if(!empty($data['id'])): ?> value="<?php echo htmlentities($data['id']); ?>"<?php endif; ?> />
                <button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm am-btn-block" data-am-loading="{loadingText:'处理中...'}">保存</button>
            </div>
        </form>
        <!-- form end -->
    </div>
</div>
<!-- right content end  -->
        
<!-- footer start -->
<!-- commom html -->
<textarea id="upload-editor-view" data-url="<?php echo MyUrl('admin/ueditor/index', ['path_type'=>empty($editor_path_type) ? 'common' : $editor_path_type]); ?>" style="display: none;"></textarea>

<!-- 公共底部钩子 -->
<?php if(!empty($plugins_admin_view_common_bottom_data) and is_array($plugins_admin_view_common_bottom_data) and (!isset($is_footer) or $is_footer == 1)): foreach($plugins_admin_view_common_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
            <?php echo $hook; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

</body>
</html>

<!-- 类库 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/jquery/jquery-2.1.0.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/assets/js/amazeui.min.js"></script>

<!-- echarts 图表 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/echarts/echarts.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/echarts/macarons.js"></script>

<!-- ueditor 编辑器 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/ueditor.config.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/ueditor.all.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/lang/zh-cn/zh-cn.js"></script>

<!-- 颜色选择器 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/colorpicker/jquery.colorpicker.js"></script>

<!-- 元素拖拽排序插件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>

<!-- 动画数数 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/animation-count-to/animation.count.to.js"></script>

<!-- amazeui插件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-switch/amazeui.switch.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-chosen/amazeui.chosen.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-dialog/amazeui.dialog.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-tagsinput/amazeui.tagsinput.min.js"></script>

<!-- 日期组件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/My97DatePicker/WdatePicker.js"></script>

<!-- 元素拖动 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/tdrag/tdrag.min.js"></script>

<!-- 隐藏编辑器初始化 -->
<script type="text/javascript">
    var upload_editor = UE.getEditor("upload-editor-view", {
        isShow: false,
        focus: false,
        enableAutoSave: false,
        autoSyncData: false,
        autoFloatEnabled:false,
        wordCount: false,
        sourceEditor: null,
        scaleEnabled:true,
        toolbars: [["insertimage", "insertvideo", "attachment"]]
    });
</script>

<!-- 项目公共 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/js/common.js"></script>

<!-- 应用插件公共js -->
<?php if(!empty($plugins_js)): ?>
    <script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($plugins_js); ?>"></script>
<?php endif; ?>

<!-- 当前控制器js -->
<?php if(!empty($module_js)): ?>
    <script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($module_js); ?>"></script>
<?php endif; ?>

<!-- js钩子 -->
<?php if(!empty($plugins_admin_js_data) and is_array($plugins_admin_js_data)): foreach($plugins_admin_js_data as $hook): if(is_string($hook)): ?>
            <script type='text/javascript' src="<?php echo htmlentities($hook); ?>"></script>
        <?php elseif(is_array($hook)): foreach($hook as $hook_js): if(is_string($hook_js)): ?>
                    <script type='text/javascript' src="<?php echo htmlentities($hook_js); ?>"></script>
                <?php endif; ?>
            <?php endforeach; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

<!-- 公共页面底部钩子 -->
<?php if(!empty($plugins_admin_common_page_bottom_data) and is_array($plugins_admin_common_page_bottom_data)): foreach($plugins_admin_common_page_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
            <?php echo $hook; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>
<!-- footer end -->